#include "../inc/point.hpp"
#include "../inc/line.hpp"
#include "../inc/cycle.hpp"

Point::Point(double x,double y):x(x),y(y){
	double *k =new double[2];
	k[0] =y;
	k[1] =x;
	//point =Array<double>(2,1, k);
	delete k;
}

Line Point::operator+ (Point b){
	Line rL(*this, b);
	return rL;
}

Cycle Point::operator+ (double b){
	Cycle rC(*this, b);
	return rC;
}

ostream& operator<<(ostream &cout, const Point &p){
  cout <<" x="<<p.x <<" y=" <<p.y;
  return cout;
}


